home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 628 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.4 KB

  1. Path: wndrwrks.demon.co.uk!andy
  2. From: Andy Armstrong <andy@wndrwrks.demon.co.uk>
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Blinking mouse
  5. Date: Fri, 5 Jan 1996 12:25:41 +0000
  6. Organization: WonderWorks
  7. Distribution: world
  8. Message-ID: <eky8XAAFjR7wEwQs@wndrwrks.demon.co.uk>
  9. References: <51231203347$71C7@lasernet.com>
  10. NNTP-Posting-Host: wndrwrks.demon.co.uk
  11. X-NNTP-Posting-Host: wndrwrks.demon.co.uk
  12. MIME-Version: 1.0
  13. X-Newsreader: Turnpike Version 1.10 <qBJsdVzqmTD$H3HpwSrFWKs0Aw>
  14.  
  15. In article <51231203347$71C7@lasernet.com>, Jonathan Wooldridge
  16. <jonathan_wooldridge@lasernet.com> writes
  17. >So here's the situation: DOS GUI, 640x480x16 vga (Borland 3.1), ok?
  18. >
  19. >mouse.Hide();   // Hide mouse routine (basically a mouse driver call)
  20. >UpdateClock();  // Redraw graphic
  21. >mouse.Show();   // Same deal as mouse.Hide()
  22. >
  23. >Works well and good, but the mouse cursor flickers painfully. I've tried
  24. >    to update the graphics without first hiding the mouse cursor,
  25. >    but I get 'smeared' cursor ghosts, and other wierd artifacts on the
  26. >    screen. A definite nono.
  27. >
  28. >Is there a way to avoid flicker on the mouse cursor, when updating graphics?
  29.  
  30. Make sure you only hide the cursor if it overlaps the thing being
  31. painted and/or wait for screen vertical retrace until you update.
  32.  
  33. Not exactly a C++ question though is it?
  34.  
  35.   Andy Armstrong                  WonderWorks
  36.   Phone/fax: 01665 602868 Mobile: 0860 922719
  37.